package Practice.Practice_02.FingerGuessingGame;

public class Play {

    private int p;
    private int s;
    private int f;

    public int getP() {
        return p;
    }

    public int getS() {
        return s;
    }

    public int getF() {
        return f;
    }

    public Play(){

    }

    public void result(int x, int y) {
        if(x==y){
            System.out.println("平局!");
            p++;
        }else if((x-y)==1||(x==1&&y==3)){
            System.out.println("赢了！");
            s++;
        }else{
            System.out.println("输了");
            f++;
        }
    }
}
